---
argData:
  num: 2
---
{% capture nunjucksOutput %}
{% renderTemplate "njk", argData %}
{% set njkVar = num * 2 %}
{{ njkVar }}
{% endrenderTemplate %}
{% endcapture %}
{{ nunjucksOutput }}